package com.da.springtest.ioc.inject;

/**
 * @author chenlida
 * @date 2020/6/14 21:07
 * @description
 */

import java.beans.ConstructorProperties;

public class CarModel {
    private String name;
    private String desc;

    public CarModel() {
    }

    @ConstructorProperties({"name", "desc"})
    public CarModel(String p1, String p2) {
        this.name = p1;
        this.desc = p2;
    }

    @Override
    public String toString() {
        return "CarModel{" +
            "name='" + name + '\'' +
            ", desc='" + desc + '\'' +
            '}';
    }
}